import Vue from 'vue'
import VueRouter from 'vue-router'
// import HomeView from '../views/HomeView.vue'
// import firstVue from '@/zujianchuanzhi1/first.vue'
// import second from '@/zujianchuanzhi1/second.vue'
// import third from '@/zujianchuanzhi1/third.vue'
// import notfound from '../zujianchuanzhi1/404.vue'
// import one from '../erjiluyou/one.vue'
// import two from '../erjiluyou/two.vue'
// import three from '../erjiluyou/three.vue'
import denglu from '../mianjing/denglu.vue'
import layout from '../mianjing/layout.vue'
import zhuce from '../mianjing/zhuce.vue'
import shouye from '../mianjing/sub/shouye.vue'
import shoucang from '../mianjing/sub/shoucang.vue'
import xihuan from '../mianjing/sub/xihuan.vue'
import wode from '../mianjing/sub/wode.vue'
import tiaoVue from '@/mianjing/tiao.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'layout',
    redirect:'/shouye',
    component: layout,
    children:[
      {
      path: '/shouye',
      name: 'shouye',
      component: shouye,
      meta:{
        keepAlive:true
      }
    },
    {
      path: '/shoucang',
      name: 'shoucang',
      component: shoucang
    },
    {
      path: '/xihuan',
      name: 'xihuan',
      component: xihuan
    },
    {
      path: '/wode',
      name: 'wode',
      component: wode
    },
  ]
  },
  {
    path: '/zhuce',
    name: 'zhuce',
    component: zhuce
  },
    {
    path: '/denglu',
    name: 'denglu',
    component: denglu
  },
  {
    path: '/tiao/:id',
    name: 'tiao',
    component: tiaoVue
  },
]

const router = new VueRouter({
  routes
})

export default router
